# gnu as汇编示例
.section .data
output:
    .ascii "The CPU Vender ID is 'xxxxxxxxxxxx'\n"

.section .text
.global _start
_start:
    movl $0, %eax
    cpuid
    movl $output, %edi
    movl %ebx, 22(%edi)
    movl %edx, 26(%edi)
    movl %ecx, 30(%edi)
    movl $4, %eax
    movl $1, %ebx
    movl $output, %ecx
    movl $36, %edx
    int $0x80
    movl $1, %eax
    movl $0, %ebx
    int $0x80
